import request from '@/utils/request'

// 查询
export function getPieplePointList(data) {
    return request({
        url: `/pipePoint/query`,
        method: 'get',
        params: data
    })
}

//删除  管点列表数据
export function deletePieplePoint(data) {
    return request({
        url: `/pipePoint/remove`,
        method: 'delete',
        data
    })
}


// 编辑管点
export function editPieplePoint(data) {
    return request({
        url: `/pipePoint/edit`,
        method: 'post',
        data
    })
} 

//查询 管点json数据
export function getPieplePointGeojson(data) {
    return request({
        url: `/pipePoint/getPipePointGeoJson`,
        method: 'get',
        params: data
    })
}

//查询  管线列表数据
export function getPiepleLineList(data) {
    return request({
        url: `/pipeLine/query`,
        method: 'get',
        params: data
    })
}

//查询 管线json数据
export function getPiepleLineGeojson(data) {
    return request({
        url: `/pipeLine/getPipeLineGeoJson`, ///pipeLine/getPipeLineGeoJson
        method: 'get',
        params: data
    })
}

//删除  管线列表数据
export function deletePiepleLine(data) {
    return request({
        url: `/pipeLine/remove`,
        method: 'delete',
        data
    })
}
